//
//  AppDelegate.swift
//  KunLanCamera
//
//  Created by 李东 on 2024/3/23.
//

import UIKit
import IQKeyboardManagerSwift
import WebKit

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.backgroundColor = .white
        window?.makeKeyAndVisible()
        if AppConfig.finishGuide {
            window?.rootViewController = KunBaseNavVC(rootViewController: KunHomeVC())
        }else{
            window?.rootViewController = KunGuideVC()
        }
        IQKeyboardManager.shared.enable = true
        if let url = URL(string: "https://www.baidu.com") {
            let request = URLRequest(url: url)
            WKWebView().load(request)
        }
        return true
    }




}

